﻿namespace nsadv.Statistic.Repository.NHibernate.Transactions
{
	internal class Transaction : ITransaction
	{
		protected readonly global::NHibernate.ITransaction RealTransaction;

		public Transaction(global::NHibernate.ITransaction realTransaction)
		{
			RealTransaction = realTransaction;
		}

		public bool IsActive
		{
			get { return RealTransaction.IsActive; }
		}

		public void Commit()
		{
			RealTransaction.Commit();
		}

		public void Rollback()
		{
			RealTransaction.Rollback();
		}

		public void Dispose()
		{
			RealTransaction.Dispose();
		}
	}
}
